
import * as XUNJIAN from '@/api/engineeringMaintenance/engineeringMaintenance.js'
import {OPT_CACHE} from "./common.js" 


/** 离线缓存的选项数据对应的离线文件路径（或文件名） */
const _map = new Map();

//病害所有详情列表
_map.set(XUNJIAN.getDetailsList, {
	name:'区间站点下病害详情列表', 
	type: OPT_CACHE, 
	dataFieldName:'result',
	persisApi:'persisDiseaseOrderList'
})


//缓存级联列表
_map.set(XUNJIAN.diseaseGradeList, {
	name:'病害等级(级联一级)', 
	type: OPT_CACHE, 
	dataFieldName:'list',
	persisApi:XUNJIAN.cacheDiseaseGradeList
})


//缓存级联列表
_map.set(XUNJIAN.getDiseaseContent, {
	name:'病害内容(级联二级)', 
	type: OPT_CACHE, 
	persisApi:XUNJIAN.cacheDiseaseContent
})
//缓存上次填报记录
_map.set(XUNJIAN.inspectLogUpdateState, {
	name:'上次填报记录', 
	type: OPT_CACHE, 
	persisApi:XUNJIAN.inspectLogUpdateState
})

//缓存关键字列表
_map.set(XUNJIAN.diseaseKeywordsList, {
	name:'关键字列表', 
	type: OPT_CACHE, 
	dataFieldName:'list',
	persisApi:XUNJIAN.diseaseKeywordsList
})

//缓存现状列表
_map.set(XUNJIAN.diseaseStatusList, {
	name:'现状列表', 
	type: OPT_CACHE, 
	dataFieldName:'list',
	persisApi:XUNJIAN.diseaseStatusList
})


//缓存修复措施列表
_map.set(XUNJIAN.diseaseMaterialList, {
	name:'修复措施', 
	type: OPT_CACHE, 
	dataFieldName:'list',
	persisApi:XUNJIAN.diseaseMaterialList
})


_map.set(XUNJIAN.getLastFillingRecord, {
	name:'上次填报记录', 
	type: OPT_CACHE, 
	dataFieldName:'result',
	persisApi:XUNJIAN.inspectLogUpdateState
})

_map.set(XUNJIAN.getPlanLineSectionSiteStateTreeByLike, {
	name:'区间站点数据', 
	type: OPT_CACHE, 
	dataFieldName:'result',
	persisApi:'persisSectionSiteStateTree'
})

export const apiDataMapping = _map;

